aux_source_directory(. SHARE_SRC)
add_library(share SHARED ${SHARE_SRC})
install(TARGETS share 
        LIBRARY DESTINATION lib)

target_link_libraries(share
                    rt
                    ${lcb_LIBRARIES}
                    ${LIBCURL_LIBRARIES}
                    ${PROTOBUF_LIBRARIES}
                    ${LIBEVENT_LIBRARIES}
                    ${LIBEVHTP_LIBRARIES}
                    ${LIBSSL_LIBRARIES}
                    ${LIBUV_LIBRARIES}
                    ${ZLIB_LIBRARIES}
                    )    

